#include "effect.h"

Effect::Effect(ALLEGRO_BITMAP* bitmap)
{
	_bitmap = bitmap;
	lastTime = 60;
	_remove = false;
}

void Effect::draw()
{
	
	al_draw_tinted_bitmap(_bitmap, al_map_rgba_f(1, 0, 0, 0.75),
		0, 0, 0);
}

void Effect::updata()
{
	if (lastTime < 0)
	{
		_remove = true;
	}
	lastTime--;
}